package com.jinly.ryder.account.dao.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.jinly.ryder.account.service.model.UserState;
import com.jinly.ryder.common.dao.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_info")
public class UserInfoDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户名称
     */
    @TableField(value = "username", updateStrategy = FieldStrategy.NEVER)
    private String username;

    /**
     * 用户昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 用户密码
     */
    @TableField(value = "password", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String password;

    /**
     * 用户头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 手机号码
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 电子邮箱
     */
    @TableField(value = "email")
    private String email;

    @TableField(value = "state")
    private UserState state;
}
